package com.fzn.spring5;

/**
 * @author fzn
 * @date 2022/2/19
 * @apiNote
 *      1.使用set方法注入属性
 */
public class Book {
    private String name;
    private String author;
    private String address;

    public void setName(String name) {
        this.name = name;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void testDemo() {
        System.out.println(name+"::"+author+"::"+address);
    }
}
